function loadBookExpect(target)
{
	Packages.system.mlf.GateKeeper.updateDynamicPortlet(target._parent, "app/vo/BookExpect.xml");
	dynamicPortletArr.bookInfo="bookExpect";
}

function confirmBookExpect()
{
	var obj:Object=new Object();
	obj.memberId=Packages.model.UserProfile.data.memberId+"";
	obj.bookId=Packages.model.Context.address.id+"";

	obj.reason=Packages.system.utils.TextUtil.getValue("expectReasonValue", this._name);
	if (obj.reason=="")
	{
		Packages.modula.MessageCenter.send("TEXTINPUT_REQUIRED", 1, 0);
		return;
	}
	//Packages.log(this+".bookExpectCreate...bookId="+obj.bookId+" memberId="+obj.memberId); 
	var data:Object=new Object();
	// data.path=target._parent;
	data.name="BookSpecial";
	data.container="bookInfoContainer";
	data.oper="bookExpectCreate";
	data.uri="app/content/bookPage/BookSpecial.xml";
	data.returnPath="loadBookSpecialInfo";
	data.dynamicPortlet=dynamicPortletArr.bookInfo;

	dynamicPortletArr.bookInfo="commonRemotingResult";

	Packages.modula.RequestCommand.request("REMOTING", "bookExpectCreate", obj, Packages.model.vo.CommonRemotingResultView, "normal", this, data);
}

function onBookExpectInit()
{
	var evtTargetArr:Array=new Array();
	evtTargetArr.push(Packages.system.mlf.GateKeeper.scanElement(this._name, "expectConfirmSpot"));
	evtTargetArr.push(Packages.system.mlf.GateKeeper.scanElement(this._name, "expectReturnSpot"));
	Packages.system.events.StateFulButtonEvent.initialize(evtTargetArr);
}